package com.situ.mall.test;

public class FinallyDemo {

	public static void main(String[] args) {
		int result = finallyNotWork();
		System.out.println(result);// 10001
	}

	public static int finallyNotWork() {
		int temp = 10000;
		try {
			throw new Exception();
		} catch (Exception e) {
			return ++temp;
		} finally {
			System.out.println("finally");
			temp = 99990;
		}
	}
}
